<%@ page import="entity.User" %>
<%@ page import="entity.Page" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>图书管理系统</title>
    <link href="css/userInformation.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<div class="wrap">
    <div class="head">
        <div class="head_left">
            <h2>图书管理系统</h2>
        </div>
        <div class="head_right">
            <div class="show">
                <div class="wel">
                    <h3>欢迎您</h3>
                </div>
                <div class="login">
                    <input type="text" readonly="readonly" value="<%=session.getAttribute("user")==null?"请先登录":((User)session.getAttribute("user")).getUserId()%>" />
                </div>
            </div>
            <div class="exit">
            </div>
        </div>
    </div>

    <div class="nav">
        <div class="list">
        </div>
    </div>

    <div class="body">
        <div class="list_left">
            <ul>
                <li>
                    <a class ="a1"  href="<%=session.getAttribute("user")==null?"login.jsp":"QueryBookByPageServlet"%>">图书管理</a>
                </li>
                <li>
                    <a class="a2"  href="<%=session.getAttribute("user")==null?"login.jsp":"QueryUsersByPageServlet"%>">用户管理</a>
                </li>
                <li>
                    <a class="a3"  href="<%=session.getAttribute("user")==null?"login.jsp":"RecordsCountByPageServlet"%>">借阅统计</a>
                </li>
                <li>
                    <a class="a4"  href="<%=session.getAttribute("user")==null?"login.jsp":"RecordsInformationByPageServlet"%>">图书借阅信息</a>
                </li>
                <li>
                    <a class="a5"  href="QuitServlet">安全退出</a>
                </li>
            </ul>
        </div>
        <div class="body_right">
            <div id="search">
                <div id="search_body">
                    <form method="post" action="UpdateUserServlet">
                        <div>
                            <label>账号</label>
                            <input class="in" type="text" name="id" readonly="readonly" value="${requestScope.userInf.userId} "/>
                        </div>
                        <div>
                            <label>姓名</label>
                            <input class="in" type="text" name="name" value="${requestScope.userInf.userName}"/>
                        </div>
                        <div>
                            <label>密码</label>
                            <input class="in" type="password" name="pwd"  value="${requestScope.userInf.userPassword}"/>
                        </div>
                        <div>
                            <label>确认密码</label>
                            <input class="in" type="password" name="repwd"  value="${requestScope.userInf.userPassword}"/>
                        </div>
                        <div>
                            <label>性别</label>
                            <input class="in" type="text" name="sex"  value="${requestScope.userInf.sex}"/>
                        </div>
                        <div>
                            <label>出生年月</label>
                            <input class="in" type="text" name="birth" value="${requestScope.userInf.birth}">
                        </div>
                        <div>
                            <label>地址</label>
                            <input class="in" type="text" name="address" value="${requestScope.userInf.address}"/>
                        </div>
                        <div>
                            <label>类型</label>
                            <input class="in" type="text"  name="type" readonly="readonly" value="${requestScope.userInf.type}"/>
                        </div>
                        <div>
                            <label>注册时间</label>
                            <input class="in" type="text" name="regdate" readonly="readonly" value="${requestScope.userInf.regdate}"/>
                        </div>
                        <div>
                            <input id="update" type="submit" value="修改"/>
                            <a id="return" href="QueryUsersByPageServlet">返回</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <div class="flooter">
        <div class="foot">
            Copyright &copy; 2022-2032 SSPU-lyx.com 版权所有
        </div>
    </div>
</div>
</body>
</html>